<table cellpadding="0" cellspacing="0" id="tables">
	<tr>
			<th><?php echo 'STT'?></th>
			<th><?php echo 'Ngành';?></th>
			<th><?php echo 'Khóa học';?></th>
			<th class="actions"><?php __('Thao tác');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($ctdts as $ctdt):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td>
			<?php echo $ctdt['Nganh']['tenNganh']; ?>
		</td>
		<td><?php echo $ctdt['Ctdt']['Khoa']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Chi tiết', true), array('controller'=>'nhomhps','action' => 'xemnhomhp', $ctdt['Ctdt']['id'])); ?>
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $ctdt['Ctdt']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $ctdt['Ctdt']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $ctdt['Ctdt']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ctdt['Ctdt']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện cả %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
	<?php  $this->Paginator->options(array('url'=>array('controller'=>'ctdts','action'=>'dsctdt',$khoa,$nganhrt,$khoahoc))); //,$khoa,$nganh,$khoahoc?>
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
	</div>